package com.wontube.smr.client.model.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.wontube.client.modle.vo.PagenateInfo;
import com.wontube.client.modle.vo.PagenateSupport;
import com.wontube.smr.client.model.po.VVideo;

/**
 * @author yuechao
 *
 */
public final class VVideoItems implements Serializable {
	private static final long serialVersionUID = -3548423795456517922L;	
	private PagenateSupport pagenate = new PagenateSupport();	
	private List<VVideo> items = new ArrayList<VVideo>();	
	
	public VVideoItems() {		
	}
	
	public VVideoItems(PagenateInfo pageInfo) {
		if (pageInfo.getPageSize() > PagenateSupport.maxPageSize) {
			pageInfo.setPageSize(PagenateSupport.maxPageSize);
		}
		this.pagenate.setPagenateInfo(pageInfo);
	}
	
	public PagenateSupport getPagenate() {
		return this.pagenate;
	}
	
	public void setPagenate(PagenateSupport value) {
		this.pagenate = value;
	}
	
	public int getPageNo(){
		return pagenate.getPageNo();
	}
	
	public int getPageCount(){
		return pagenate.getPageCount();
	}
	
	public void setTotalCount(int total){
		pagenate.setTotalCount(total);
	}
	
	public int getTotalCount(){
		return pagenate.getTotalCount();
	}
	
	public List<VVideo> getItems() {
		return this.items;
	}
	
	public void setItems(List<VVideo> items) {
		this.items = items;
	}	
}
